package de.justphil.tcg.tcgserver.commons.domain.complete;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class CUser {
	
	@XmlElement
	private long id;
	
	@XmlElement
	private boolean admin;
	
	@XmlElement
	private String username;
	
	@XmlElement
	private String password;
	
	@XmlElement
	private Date created;
	
	@XmlElement
	private Date modified;

	
	public CUser() {
		// JAXB conformity
	}
	
	public CUser(long id, boolean admin, String username, String password,
			Date created, Date modified) {
		super();
		this.id = id;
		this.admin = admin;
		this.username = username;
		this.password = password;
		this.created = created;
		this.modified = modified;
	}
	
	
	
	/* ######################################################################## */
	/* ######################################################################## */
	/* ######################################################################## */

	public long getId() {
		return id;
	}

	public boolean isAdmin() {
		return admin;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public Date getCreated() {
		return created;
	}

	public Date getModified() {
		return modified;
	}
	
	
	/* ######################################################################## */
	/* ######################################################################## */
	/* ######################################################################## */
	

	public void setId(long id) {
		this.id = id;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

}
